Providing semantic based document editor

ABSTRACT

A semantic based document editor is provided. An application such as a document processing application displays previews of a document. The previews include semantic styles. In response to a selection of one of the previews, a semantic style associated with the selected preview is applied to a section of the document. The semantic style is rendered in the selected preview. A suggestion is displayed on the section. The suggestion identifies the section. The suggestion is also formatted based on the semantic style.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to and is a continuation of co-pendingU.S. patent application Ser. No. 14/825,069 entitled “Providing SemanticBased Document Editor” and filed Aug. 12, 2015, which is incorporatedherein by reference.

BACKGROUND

People interact with computer applications through user interfaces.While audio, tactile, and similar forms of user interfaces areavailable, visual user interfaces through a display device are the mostcommon form of a user interface. With the development of faster andsmaller electronics for computing devices, smaller size devices such ashandheld computers, smart phones, tablet devices, and comparable deviceshave become common. Such devices execute a wide variety of applicationsranging from communication applications to complicated analysis tools.Many such applications present documents. Commands with operations toedit documents are also presented through a display and enable users toprovide input associated with the applications' operations.

SUMMARY

This summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This summary is not intended to exclusively identify keyfeatures or essential features of the claimed subject matter, nor is itintended as an aid in determining the scope of the claimed subjectmatter.

Embodiments are directed to a semantic based document editor. In someexamples, a document processing application may display previews of adocument. The previews may include semantic styles. A selection of oneof the previews may be detected. A semantic style associated with theselected preview may be applied to a section of the document. Thesemantic style may be rendered in the selected preview. A suggestion maybe displayed on the section. The suggestion may identify the section.The suggestion may be formatted based on the semantic style.

These and other features and advantages will be apparent from a readingof the following detailed description and a review of the associateddrawings. It is to be understood that both the foregoing generaldescription and the following detailed description are explanatory anddo not restrict aspects as claimed.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a conceptual diagram illustrating an example of providing asemantic based document editor, according to embodiments;

FIG. 2 is a display diagram illustrating an example of a documentprocessing application that provides semantic styles to format adocument, according to embodiments;

FIG. 3 is a display diagram illustrating an example of a documentprocessing application that provides sections of the document formattedbased on a semantic style, according to embodiments;

FIG. 4 is a display diagram illustrating a semantic based documenteditor providing sectioned content formatted based on a semantic style,according to embodiments;

FIG. 5 is a simplified networked environment, where a system accordingto embodiments may be implemented;

FIG. 6 is a block diagram of an example computing device, which may beused to provide a semantic based document editor; and

FIG. 7 is a logic flow diagram illustrating a process to provide asemantic based document editor, according to embodiments.

DETAILED DESCRIPTION

As briefly described above, a semantic based document editor may beprovided by a document processing application. The document processingapplication may display previews of a document. The previews may includesemantic styles. A semantic style may include a classification of asection of the document into a title, a subtitle, a heading, a bulletlist, or a paragraph, among others. A selection of one of the previewsmay be detected. A semantic style associated with the selected previewmay be applied to a section of the document. The semantic style may berendered on the selected preview.

The semantic style may also include format attributes of the section ofthe document. The format attributes of the section may include a fontstyle, a font type, a font color, a font width, an optical style, a linespacing, and/or a background color, among others. A suggestion may alsobe displayed on the section. The suggestion may identify the section.The suggestion may be formatted based on the semantic style.

In the following detailed description, references are made to theaccompanying drawings that form a part hereof, and in which are shown byway of illustrations, specific embodiments, or examples. These aspectsmay be combined, other aspects may be utilized, and structural changesmay be made without departing from the spirit or scope of the presentdisclosure. The following detailed description is therefore not to betaken in a limiting sense, and the scope of the present invention isdefined by the appended claims and their equivalents.

While some embodiments will be described in the general context ofprogram modules that execute in conjunction with an application programthat runs on an operating system on a personal computer, those skilledin the art will recognize that aspects may also be implemented incombination with other program modules.

Generally, program modules include routines, programs, components, datastructures, and other types of structures that perform particular tasksor implement particular abstract data types. Moreover, those skilled inthe art will appreciate that embodiments may be practiced with othercomputer system configurations, including hand-held devices,multiprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers, and comparablecomputing devices. Embodiments may also be practiced in distributedcomputing environments where tasks are performed by remote processingdevices that are linked through a communications network. In adistributed computing environment, program modules may be located inboth local and remote memory storage devices.

Some embodiments may be implemented as a computer-implemented process(method), a computing system, or as an article of manufacture, such as acomputer program product or computer readable media. The computerprogram product may be a computer storage medium readable by a computersystem and encoding a computer program that comprises instructions forcausing a computer or computing system to perform example process(es).The computer-readable storage medium is a computer-readable memorydevice. The computer-readable storage medium can for example beimplemented via one or more of a volatile computer memory, anon-volatile memory, a hard drive, a flash drive, a floppy disk, or acompact disk, and comparable hardware media.

Throughout this specification, the term “platform” may be a combinationof software and hardware components to provide a semantic based documenteditor. Examples of platforms include, but are not limited to, a hostedservice executed over a plurality of servers, an application executed ona single computing device, and comparable systems. The term “server”generally refers to a computing device executing one or more softwareprograms typically in a networked environment. More detail on thesetechnologies and example operations is provided below.

A computing device, as used herein, refers to a device comprising atleast a memory and a processor that includes a desktop computer, alaptop computer, a tablet computer, a smart phone, a vehicle mountcomputer, or a wearable computer. A memory may be a removable ornon-removable component of a computing device configured to store one ormore instructions to be executed by one or more processors. A processormay be a component of a computing device coupled to a memory andconfigured to execute programs in conjunction with instructions storedby the memory. A file is any form of structured data that is associatedwith audio, video, or similar content. An operating system is a systemconfigured to manage hardware and software components of a computingdevice that provides common services and applications. An integratedmodule is a component of an application or service that is integratedwithin the application or service such that the application or serviceis configured to execute the component. A computer-readable memorydevice is a physical computer-readable storage medium implemented viaone or more of a volatile computer memory, a non-volatile memory, a harddrive, a flash drive, a floppy disk, or a compact disk, and comparablehardware media that includes instructions thereon to automatically savecontent to a location. A user experience—a visual display associatedwith an application or service through which a user interacts with theapplication or service. A user action refers to an interaction between auser and a user experience of an application or a user experienceprovided by a service that includes one of touch input, gesture input,voice command, eye tracking, gyroscopic input, pen input, mouse input,and keyboards input. An application programming interface (API) may be aset of routines, protocols, and tools for an application or service thatenable the application or service to interact or communicate with one ormore other applications and services managed by separate entities.

FIG. 1 is a conceptual diagram illustrating an example of providing asemantic based document editor, according to embodiments.

In a diagram 100, a computing device 102 may execute a documentprocessing application 108. The computing device 102 may include atablet device, a laptop computer, a desktop computer, and a smart phone,among others. The computing device 102 may display the documentprocessing application 108 to a user 106. The user 106 may be allowed tointeract with the document processing application 108 through an inputdevice or touch enabled display component of the computing device 102.The computing device 102 may include a display device such as the touchenabled display component, and a monitor, among others to provide thedocument processing application 108 to the user 106.

The document processing application 108 may present previews of adocument 110 to the user 106. The previews may be generated based onapplied semantic styles. The semantic styles may be identified fromprevious use or from style resources that provide commonly used semanticstyles. In response to a selection of a preview, the document 110 may begenerated with sections that are formatted based on a semantic styleassociated with the preview. In an example scenario, a new document witha title section, a subtitle section, and a paragraph section may begenerated based on the selected preview.

Alternatively, the selected preview may be used to format sections ofthe document 110 with the associated semantic style. In an examplescenario, the font size of a title section of the document 110 may bechanged based on the semantic style of the selected preview.

The user 106 may interact with the document processing application 108with a keyboard based input, a mouse based input, a voice based input, apen based input, and a gesture based input, among others. The gesturebased input may include one or more touch based actions such as a touchaction, a swipe action, and a combination of each, among others.

The document processing application 108 may store the document 110locally. Alternatively, the document 110 may be retrieved from a contentservice hosted by a content server 104. The content server 104 mayinclude a web server, a document server, among others. The computingdevice 102 may communicate with the content server 104 through anetwork. The network may provide wired or wireless communicationsbetween nodes such as the computing device 102, or the content server104, among others.

While the example system in FIG. 1 has been described with specificcomponents including the computing device 102, the document processingapplication 108, embodiments are not limited to these components orsystem configurations and can be implemented with other systemconfiguration employing fewer or additional components.

FIG. 2 is a display diagram illustrating an example of a documentprocessing application that provides semantic styles to format adocument, according to embodiments.

In a diagram 200, a document processing application 202 may presentpreviews of a document. For example, a first preview (204), a secondpreview (206), and a third preview (208) may be displayed, each having asemantic style associated with a recent document 210. The first preview(204), the second preview (206), and the third preview (208) presentuser-entered content of an existing document formatted using semanticstyles from the recent document 210. A fourth preview (214), a fifthpreview (216), and a sixth preview (218) may be displayed, each having asemantic style retrieved from a styles library 212.

In an example scenario, in response to a request to generate a newdocument, previews may be presented with semantic styles to format adocument. Recently used semantic styles may be presented through thefirst preview (204), the second preview (206), and the third preview(208). The recently used semantic styles may be identified from theuser's use history associated with previous documents.

A semantic style may classify a section of the new document as a title,a subtitle, a heading, a bullet list, a paragraph a pull quote, anumbered list, and/or a code excerpt, among others. A semantic style mayalso include format attributes of the section such as a font style, afont type, a font color, a font width, an optical style, a line spacing,and/or a background color, among others. Examples of attributesassociated with a section were not provided in a limiting sense. Otherattributes may also be applied to a section of a document as describedwithin a semantic style.

Previews may also be generated based on semantic styles retrieved fromthe styles library 212. The semantic styles associated with the fourthpreview (214), the fifth preview (216), and the sixth preview (218) maybe retrieved from the styles library 212. The styles library 212 maystore semantic style to apply to a document. The styles library 212 maybe provided by the document processing application 202. Alternatively,the styles library 212 may be accessed from a trusted external resourceprovider.

The semantic styles may be retrieved and sorted based on frequency ofuse, whether by the particular user 106 or a group of users. Thepreviews may be ordered based on a high frequency of use of theassociated semantic style to a low frequency of use of the associatedsemantic style. The previews may also be scrollable to presentadditional applications of semantic styles through additional previewshidden off screen but accessible through a scroll action.

The fourth preview (214), the fifth preview (216), and the sixth preview(218) may also render sections of the new document with formatting basedon the associated semantic style. In an example scenario, the fourthpreview (214) may display format attributes to be applied to a titlesection, a paragraph section, a bullets section, and a subtitle sectionof a document. The fifth preview (216) may present a differentformatting combinations of the sections of the document. The fifthpreview (216) may also apply different format attributes to thepresented sections.

The previews presented by the document processing application may alsobe applied to an existing document to format the existing document basedon the semantic style associated with a selected preview. The formattingattributes associated with sections (as presented by the selectedpreview) may be applied to corresponding sections of the existingdocument. In an example scenario, a selected preview may apply theassociated semantic style to the existing document, such as to formatthe title of the existing document with a bold font.

FIG. 3 is a display diagram illustrating an example of a documentprocessing application that provides sections of the document formattedbased on a semantic style, according to embodiments.

In a diagram 300, a document processing application 302 may generate adocument with sections formatted based on a selected semantic style. Thesections may include requests to prompt a user to enter contentassociated with the sections. In an example scenario, a title section304, a subtitle section 306, a paragraph section 308, and a paragraphsection 310 may be inserted, along with suggestions that identify thesections within a document. The suggestions may be formatted based onthe semantic style applied to the document. The formatted suggestionsmay inform an editor of the formatting applied to the associatedsection.

The suggestions may identify the type of the associated section. Forexample, the suggestion displayed on the title section 304 may requestentry of a title into the title section 304. The suggestion displayed onthe subtitle section 306 may request entry of a subtitle into thesubtitle section 306. The suggestion displayed on the paragraph section308 may request entry of a paragraph text into the paragraph section308. Similarly, the suggestion displayed on the paragraph section 310may request entry of a paragraph text into the paragraph section 310.

A copy action 305 may also be detected to insert a copied content 303into the title section 304. A source of the copied content 303 may bequeried to identify a semantic style associated with the copied content303. The source may include another document or a content provider,among others. The copied content 303 may be formatted with the semanticstyle identified at the source of the copied content 303. The copiedcontent 303 (as formatted with the semantic style) may be inserted intothe title section 304.

Alternatively, the copied content 303 may be analyzed to classify asemantic style in response to a failure to identify the semantic styleof the copied content 303 at the resource. In an example scenario, ashort sentence that includes a bold font type formatting may beidentified to have a title based semantic style. The copied content 303may be formatted with the classified semantic style and inserted intothe title section 304.

FIG. 4 is a display diagram illustrating a semantic based documenteditor providing sectioned content formatted based on a semantic style,according to embodiments.

In a diagram 400, a document processing application 402 may displaysections of a document formatted based on a semantic style. The semanticstyle may describe a classification of the section, such as a titleand/or a formatting attribute (e.g., font type) of the section, amongothers.

In response to a selection of a section 406, the document processingapplication may display a style command control 414 in proximity to thedocument. The style command control may include style commands to changea semantic style of the section 406. A style command 416 may behighlighted to indicate that a semantic style associated with the stylecommand 416 was used to format the section 406.

The semantic style of the section 406 may be changed in response to aselection of an associated style command on the style command control414. In an example scenario, a selection of a bullet style command mayexecute operations to change the semantic style of the section 406 froma subtitle style to a bullet style. As a result, the section 406 may beformatted to include a bulleted item.

The document processing application may also analyze historical data(such as historical use associated with a user, a document, and/or adocument type, among others) to identify a subsequent section 418 andformat the subsequent section based on a semantic style identifiedthrough the historical data and/or heuristics. In an example scenario,the document processing application may analyze document creationpatterns, whether of the particular user 106 or a group of users, toidentify that a subtitle section follows a bullet section 410 based onpast use data associated with the document type and/or a user role,among other attributes. The document processing application may placethe subtitle section 418 following the creation of the bullet section410.

The document processing application may also create a navigation control404 based on the semantic styles of the sections of the document. Thenavigation control 404 may have navigation commands linked to thesections of the document. The navigation control 404 may be displayed inproximity to the document. Alternatively, the navigation control 404 maybe embedded into the document. An example of the navigation control 404may include a floating table of contents that may be overlaid on thedocument. The navigation control 404 may be minimized or hidden based onuser preferences. In response to a selection of one of the commands inthe navigation control, the document may be scrolled to display asection linked to a navigation command 408.

A section of the document may also be encapsulated with boundaries. Theboundaries may be used to indicate a type of content that may beinserted into the section. In an example scenario, a section of thedocument may be encapsulated with boundaries that are hidden orsemi-transparent. In response to a user action to insert a content intothe section of the document, the boundaries around the section may bemade highlighted and a prompt may be displayed to inform the user thatthe content may be reformatted to match a semantic style of the sectionwithin the boundaries. Alternatively, a prompt may also be displayed toinform the user that a semantic style of the content to be inserted intothe section may not match the semantic style of the section. The usermay be given a choice to (automatically) reformat the semantic style ofthe content to match the semantic style of the section or to reject aninsertion of the content into the section.

Text and non-text content of sections of the document may be reflowedbased on a semantic style applied to the document. In an examplescenario, in response to a selection of a semantic style to apply to thedocument, the text and the non-text (such as images, animations, andsimilar ones) portions of sections of the document may be reformattedbased on the semantic style. The sections may be reflowed to fit thetext and the non-text content of the sections to a width associated withthe sections. Alternatively, the text and the non-text content may bereflowed to fit a width of a page of the document based on formatattributes of the semantic style.

As discussed above, the application may be employed to performoperations associated with providing a semantic based document editor.An increased user efficiency with the document processing application108 may occur as a result of presenting alternatively formatted sectionsof a document in various previews. Additionally, the provision ofsuggestions to enter content associated with a semantic style and otheroperations of the document processing application 108 may reduceprocessor load, increase processing speed, conserve memory, and reducenetwork bandwidth usage.

Embodiments, as described herein, address a need that arises from a lackof efficiency between the user 106 interacting with the documentprocessing application 108 of the computing device 102. Theactions/operations described herein are not a mere use of a computer,but address results that are a direct consequence of software used as aservice offered to large numbers of users and applications.

The example scenarios and schemas in FIG. 1 through 4 are shown withspecific components, data types, and configurations. Embodiments are notlimited to systems according to these example configurations. Providinga semantic based document editor may be implemented in configurationsemploying fewer or additional components in applications and userinterfaces. Furthermore, the example schema and components shown in FIG.1 through 4 and their subcomponents may be implemented in a similarmanner with other values using the principles described herein.

FIG. 5 is an example networked environment, where embodiments may beimplemented. A document processing application configured to provide asemantic based document editor may be implemented via software executedover one or more servers 514 such as a hosted service. The platform maycommunicate with client applications on individual computing devicessuch as a smart phone 513, a mobile computer 512, or desktop computer511 (client devices') through network(s) 510.

Client applications executed on any of the client devices 511-513 mayfacilitate communications via application(s) executed by servers 514, oron individual server 516. A document processing application may displaypreviews of a document. The previews may include semantic styles. Inresponse to a selection of one of the previews, a semantic styleassociated with the selected preview may be applied to a section of thedocument. The semantic style may be rendered on the selected preview. Asuggestion may be displayed on the section. The suggestion may identifythe section. The document processing application may store dataassociated with the document in data store(s) 519 directly or throughdatabase server 518.

Network(s) 510 may comprise any topology of servers, clients, Internetservice providers, and communication media. A system according toembodiments may have a static or dynamic topology. Network(s) 510 mayinclude secure networks such as an enterprise network, an unsecurenetwork such as a wireless open network, or the Internet. Network(s) 510may also coordinate communication over other networks such as PublicSwitched Telephone Network (PSTN) or cellular networks. Furthermore,network(s) 510 may include short range wireless networks such asBluetooth or similar ones. Network(s) 510 provide communication betweenthe nodes described herein. By way of example, and not limitation,network(s) 510 may include wireless media such as acoustic, RF, infraredand other wireless media.

Many other configurations of computing devices, applications, datasources, and data distribution systems may be employed to provide asemantic based document editor. Furthermore, the networked environmentsdiscussed in FIG. 5 are for illustration purposes only. Embodiments arenot limited to the example applications, modules, or processes.

FIG. 6 is a block diagram of an example computing device, which may beused to provide a semantic based document editor.

For example, computing device 600 may be used as a server, desktopcomputer, portable computer, smart phone, special purpose computer, orsimilar device. In an example basic configuration 602, the computingdevice 600 may include one or more processors 604 and a system memory606. A memory bus 608 may be used for communication between theprocessor 604 and the system memory 606. The basic configuration 602 maybe illustrated in FIG. 6 by those components within the inner dashedline.

Depending on the desired configuration, the processor 604 may be of anytype, including but not limited to a microprocessor (μP), amicrocontroller (μC), a digital signal processor (DSP), or anycombination thereof. The processor 604 may include one more levels ofcaching, such as a level cache memory 612, one or more processor cores614, and registers 616. The example processor cores 614 may (each)include an arithmetic logic unit (ALU), a floating point unit (FPU), adigital signal processing core (DSP Core), or any combination thereof.An example memory controller 618 may also be used with the processor604, or in some implementations the memory controller 618 may be aninternal part of the processor 604.

Depending on the desired configuration, the system memory 606 may be ofany type including but not limited to volatile memory (such as RAM),non-volatile memory (such as ROM, flash memory, etc.), or anycombination thereof. The system memory 606 may include an operatingsystem 620, a document processing application 622, and a program data624. The document processing application 622 may include a componentsuch as a formatting engine 626. The formatting engine 626 may executethe processes associated with the document processing application 622.The formatting engine 626 may display previews of a document. Thepreviews may include semantic styles. In response to a selection of oneof the previews, a semantic style associated with the selected previewmay be applied to a section of the document. The semantic style may berendered on the selected preview. A suggestion may be displayed on thesection. The suggestion may identify the section.

Components of the document processing application 622 (such as a userinterface) may also be displayed on a display device associated with thecomputing device 600. An example of the display device may include ahardware screen that may be communicatively coupled to the computingdevice 600. The display device may include a touch based device thatdetects gestures such as a touch action. The display device may alsoprovide feedback in response to detected gestures (or any other form ofinput) by transforming a user interface of the document processingapplication 622, displayed by the touch based device. The program data624 may also include, among other data, document data 628, or the like,as described herein. The document data 628 may include a semantic styleapplied to a document, among others.

The computing device 600 may have additional features or functionality,and additional interfaces to facilitate communications between the basicconfiguration 602 and any desired devices and interfaces. For example, abus/interface controller 630 may be used to facilitate communicationsbetween the basic configuration 602 and one or more data storage devices632 via a storage interface bus 634. The data storage devices 632 may beone or more removable storage devices 636, one or more non-removablestorage devices 638, or a combination thereof. Examples of the removablestorage and the non-removable storage devices may include magnetic diskdevices, such as flexible disk drives and hard-disk drives (HDD),optical disk drives such as compact disk (CD) drives or digitalversatile disk (DVD) drives, solid state drives (SSD), and tape drives,to name a few. Example computer storage media may include volatile andnonvolatile, removable, and non-removable media implemented in anymethod or technology for storage of information, such ascomputer-readable instructions, data structures, program modules, orother data.

The system memory 606, the removable storage devices 636 and thenon-removable storage devices 638 are examples of computer storagemedia. Computer storage media includes, but is not limited to, RAM, ROM,EEPROM, flash memory or other memory technology, CD-ROM, digitalversatile disks (DVDs), solid state drives, or other optical storage,magnetic cassettes, magnetic tape, magnetic disk storage or othermagnetic storage devices, or any other medium which may be used to storethe desired information and which may be accessed by the computingdevice 600. Any such computer storage media may be part of the computingdevice 600.

The computing device 600 may also include an interface bus 640 forfacilitating communication from various interface devices (for example,one or more output devices 642, one or more peripheral interfaces 644,and one or more communication devices 646) to the basic configuration602 via the bus/interface controller 630. Some of the example outputdevices 642 include a graphics processing unit 648 and an audioprocessing unit 650, which may be configured to communicate to variousexternal devices such as a display or speakers via one or more A/V ports652. One or more example peripheral interfaces 644 may include a serialinterface controller 654 or a parallel interface controller 656, whichmay be configured to communicate with external devices such as inputdevices (for example, keyboard, mouse, pen, voice input device, touchinput device, etc.) or other peripheral devices (for example, printer,scanner, etc.) via one or more I/O ports 658. An example communicationdevice 666 includes a network controller 660, which may be arranged tofacilitate communications with one or more other computing devices 662over a network communication link via one or more communication ports664. The one or more other computing devices 662 may include servers,computing devices, and comparable devices.

The network communication link may be one example of a communicationmedia. Communication media may typically be embodied by computerreadable instructions, data structures, program modules, or other datain a modulated data signal, such as a carrier wave or other transportmechanism, and may include any information delivery media. A “modulateddata signal” may be a signal that has one or more of its characteristicsset or changed in such a manner as to encode information in the signal.By way of example, and not limitation, communication media may includewired media such as a wired network or direct-wired connection, andwireless media such as acoustic, radio frequency (RF), microwave,infrared (IR) and other wireless media. The term computer readable mediaas used herein may include both storage media and communication media.

The computing device 600 may be implemented as a part of a generalpurpose or specialized server, mainframe, or similar computer, whichincludes any of the above functions. The computing device 600 may alsobe implemented as a personal computer including both laptop computer andnon-laptop computer configurations.

Example embodiments may also include methods to provide a semantic baseddocument editor. These methods can be implemented in any number of ways,including the structures described herein. One such way may be bymachine operations, of devices of the type described in the presentdisclosure. Another optional way may be for one or more of theindividual operations of the methods to be performed in conjunction withone or more human operators performing some of the operations whileother operations may be performed by machines. These human operatorsneed not be collocated with each other, but each can be only with amachine that performs a portion of the program. In other embodiments,the human interaction can be automated such as by pre-selected criteriathat may be machine automated.

FIG. 7 is a logic flow diagram illustrating a process for providing asemantic based document editor, according to embodiments. Process 700may be implemented on a computing device, such as the computing device600 or another system.

Process 700 begins with operation 710, where previews of a document maybe displayed. The previews may include semantic styles. The semanticstyles may include a classification of a section of the document such asa title classification or a formatting attribute to apply to the sectionsuch as a font type attribute. At operation 720, a selection of apreview may be detected

At operation 730, a semantic style associated with the selected previewmay be applied to the section of the document. The semantic style may berendered in the selected preview. At operation 740, a suggestion may bedisplayed on the section. The suggestion may identify the section. Thesuggestion may also be formatted based on the semantic style.

The operations included in process 700 are for illustration purposes.Providing a semantic based document editor may be implemented by similarprocesses with fewer or additional steps, as well as in different orderof operations using the principles described herein.

According to some examples, a computing device to provide a semanticbased document editor may be described. The computing device may includea display device, a memory configured to store instructions associatedwith a document processing application and one or more processorscoupled to the memory and the display device. The one or more processorsmay execute the document processing application in conjunction with theinstructions stored in the memory. The document processing applicationmay include a formatting engine configured to display previews of adocument on the display device, where the previews include semanticstyles, detect a selection of a first preview from the previews, apply afirst semantic style from the semantic styles to a first section of thedocument, where the first semantic style is rendered in the firstpreview, and display, on the display device, a first suggestionassociated with the first section, where the first suggestion identifiesthe first section and the first suggestion is formatted based on thefirst semantic style.

According to some examples, the first semantic style may include aclassification of the first section into one or more of: a title, asubtitle, a heading, a bullet list, a paragraph, a pull quote, anumbered list, and a code excerpt style. The first semantic style mayalso include includes one or more format attributes associated with thefirst section and the one or more format attributes may include one ormore of: a font style, a font type, a font color, a font width, anoptical style, a line spacing, and a background color.

According to other examples, the formatting engine is further configuredto detect entry of a new content into a location on the document outsideof the first section, identify a second semantic style associated withthe new content, and create a second section of the document, where thesecond section is formatted based on the second semantic style. The newcontent is formatted based on the second semantic style and the newcontent is inserted into the second section. The new content is matchedto a previous content based on a comparison and a previously usedsemantic style of the previous content is identified as the secondsemantic style to associate with the new content.

According to further examples, the formatting engine is furtherconfigured to detect entry of a new content into a location on thedocument outside of the first section, in response to a failure toidentify a second semantic style associated with the new content, promptfor an input to identify the second semantic style to associate with thenew content, receive an input that identifies the second semantic styleassociated with the new content, create a second section of thedocument, where the second section is formatted based on the secondsemantic style, format the new content based on the second semanticstyle, and insert the new content into the second section.

According to other examples, the formatting engine is further configuredto detect a copy action to insert a copied content into a locationoutside of the first section and query a resource of the copied contentto identify a second semantic style of the copied content at theresource. The second semantic style of the copied content is identifiedfrom the resource, a second section formatted is created with the secondsemantic style, and the copied content is inserted into the secondsection, where the copied content is formatted with the second semanticstyle. The formatting engine is further configured to in response to afailure to identify the second semantic style from the resource, analyzethe copied content to match the copied content to an associated semanticstyle, create a second section formatted with the associated semanticstyle, and insert the copied content into the second section, where thecopied content is formatted with the associated semantic style.

According to some examples, a method provide a semantic based documenteditor may be described. The method may include displaying previews of adocument, where the previews include semantic styles, detecting aselection of a first preview from the previews, applying a firstsemantic style from the semantic styles to a first section of thedocument, where the first semantic style is rendered in the firstpreview and the first semantic style includes a classification of thefirst section into one or more of: a title, a subtitle, a bullet list, aparagraph, a pull quote, a numbered list, and a code excerpt, anddisplaying a first suggestion associated with the first section, wherethe first suggestion identifies the first section and the firstsuggestion is formatted based on the first semantic style.

According to other examples, the method may further include detecting aselection of the first section on the document, displaying a commandcontrol adjacent to the first section, where the command controlincludes style commands, highlighting a first style command from thestyle commands, where the first style command includes operations toapply the first semantic style to the first section, detecting aselection of a second style command from the style commands, andformatting the first section with a second semantic style associatedwith the second style command.

According to further examples, the method may further include displayingthe first suggestion on the first section, where the first suggestionincludes a type of the first semantic style applied on the firstsection. The method may further include generating a navigation controlthat includes a first navigation command linked to the first section,where the navigation command includes a first label associated with thefirst section, displaying the navigation control in proximity to thedocument, detecting a selection of the first navigation command, andscrolling through the document to display the first section.

According to some examples, a computer-readable memory device withinstructions stored thereon to provide a semantic based document editormay be described. The instructions may include actions that are similarto the method described above.

According to some examples a means to provide a semantic based documenteditor may be described. The means to provide a semantic based documenteditor may include a means to display previews of a document, where thepreviews include semantic styles, a means to detect a selection of afirst preview from the previews, a means to apply a first semantic stylefrom the semantic styles to a first section of the document, where thefirst semantic style is rendered in the first preview, and a means todisplay a first suggestion on the first section, where the firstsuggestion identifies the first section and the first suggestion isformatted based on the first semantic style.

The above specification, examples and data provide a completedescription of the manufacture and use of the composition of theembodiments. Although the subject matter has been described in languagespecific to structural features and/or methodological acts, it is to beunderstood that the subject matter defined in the appended claims is notnecessarily limited to the specific features or acts described above.Rather, the specific features and acts described above are disclosed asexample forms of implementing the claims and embodiments.

What is claimed is:
 1. A computing device to provide a semantic baseddocument editor in conjunction with a document processing application,the computing device comprising: a memory configured to storeinstructions associated with the semantic based document editor; one ormore processors coupled to the memory, the one or more processorsconfigured to: in response to a request, retrieve a plurality ofsuggested semantic styles based upon commonly used semantic styles, eachsuggested semantic style including a classification of multiple sectionsand format attributes associated with the multiple sections; sort theplurality of suggested semantic styles based on frequency of use by aparticular user; provide to be displayed, on a display device, aplurality of previews representing the sorted plurality of suggestedsemantic styles, the plurality of previews including user-enteredcontents of an existing document having the multiple sections, theplurality of previews showing the user-entered contents having theformat attributes associated with the plurality of suggested semanticstyles, wherein the plurality of previews are sorted based on a highfrequency of use of an associated semantic style to a low frequency ofuse of another associated semantic style; detect a selection of aselected semantic style among the plurality of suggested semantic stylesby the particular user; and apply the selected semantic style to theexisting document by formatting the multiple sections based on theselected semantic style.
 2. The computing device of claim 1, wherein theformat attributes include one or more of: a font style, a font type, afont color, a font width, an optical style, a line spacing, or abackground color.
 3. The computing device of claim 1, wherein the one ormore processors are further configured to: detect entry of a new contentinto a location on the document outside of the multiple sections;identify another semantic style associated with the new content; andcreate another section of the document formatted based on the othersemantic style.
 4. The computing device of claim 1, wherein the one ormore processors are further configured to: detect entry of a new contentinto a location on the document within a particular section; and inresponse to a failure to match another semantic style associated withthe new content to the semantic style of the particular section, providea prompt for an input to be displayed to select between an automaticreformatting of the other semantic style associated with the new contentto match the semantic style of the particular section and a rejection ofthe entry of the new content into the particular section.
 5. Thecomputing device of claim 1, wherein the one or more processors arefurther configured to: detect a copy action to insert a copied contentinto a location outside of the multiple sections; and query a resourceof the copied content to identify another semantic style of the copiedcontent at the resource.
 6. The computing device of claim 5, wherein theone or more processors are further configured to: identify the othersemantic style of the copied content from the resource; create anothersection formatted with the other semantic style; and insert the copiedcontent into the other section, wherein the copied content is formattedwith the other semantic style.
 7. The computing device of claim 1,wherein the one or more processors are further configured to: detectentry of a new content into a location on the document within asubsequent section; analyze historical data associated with theparticular user or the document to identify a semantic style for thesubsequent section; and format the subsequent section based on theidentified semantic style.
 8. A method executed on a computing device toprovide a semantic based document editor, the method comprising: inresponse to a request, retrieving a plurality of suggested semanticstyles based on commonly used semantic styles; sorting the plurality ofsuggested semantic styles based on frequency of use by a particularuser; providing to be displayed, on a display device, a plurality ofpreviews representing the sorted plurality of suggested semantic styles,the plurality of previews including user-entered contents of multiplesections of a document, the plurality of previews showing theuser-entered contents having format attributes associated with theplurality of suggested semantic styles, wherein the plurality ofpreviews are sorted based on a high frequency of use of an associatedsemantic style to a low frequency of use of another associated semanticstyle; detecting a selection of a selected semantic style among theplurality of suggested semantic styles; and applying the selectedsemantic style to the document by formatting the multiple sections basedon the selected semantic style.
 9. The method of claim 8, wherein theformat attributes include one or more of: a font style, a font type, afont color, a font width, an optical style, a line spacing, or abackground color.
 10. The method of claim 8, further comprising:detecting entry of a new content into a location on the document outsideof the multiple sections; identifying another semantic style associatedwith the new content; and creating another section of the documentformatted based on the other semantic style.
 11. The method of claim 8,further comprising: detecting entry of a new content into a location onthe document within a particular section; and in response to a failureto match another semantic style associated with the new content to thesemantic style of the particular section, providing a prompt for aninput to be displayed to select between an automatic reformatting of theother semantic style associated with the new content to match thesemantic style of the particular section and a rejection of the entry ofthe new content into the particular section.
 12. The method of claim 8,further comprising: detecting a copy action to insert a copied contentinto a location outside of the multiple sections; and querying aresource of the copied content to identify another semantic style of thecopied content at the resource.
 13. The method of claim 12, furthercomprising: identifying the other semantic style of the copied contentfrom the resource; creating another section formatted with the othersemantic style; and inserting the copied content into the other section,wherein the copied content is formatted with the other semantic style.14. The method of claim 8, further comprising: detecting entry of a newcontent into a location on the document within a subsequent section;analyzing historical data associated with the particular user or thedocument to identify a semantic style for the subsequent section; andformatting the subsequent section based on the identified semanticstyle.
 15. A computer-readable memory device with instructions storedthereon to provide a semantic based document editor, the instructionscomprising: in response to a request, retrieving a plurality ofsuggested semantic styles based on commonly used semantic styles;sorting the plurality of suggested semantic styles based on frequency ofuse by a particular user; providing to be displayed, on a displaydevice, a plurality of previews representing the sorted plurality ofsuggested semantic styles, the plurality of previews includinguser-entered contents of multiple sections of a document, the pluralityof previews showing the user-entered contents having format attributesassociated with the plurality of suggested semantic styles, wherein theplurality of previews are sorted based on a high frequency of use of anassociated semantic style to a low frequency of use of anotherassociated semantic style; detecting a selection of a selected semanticstyle among the plurality of suggested semantic styles; and applying theselected semantic style to the document by formatting the multiplesections based on the selected semantic style, which includes formatattributes associated with the multiple sections.
 16. Thecomputer-readable memory device of claim 15, wherein the instructionsfurther comprise: detecting entry of a new content into a location onthe document outside of the multiple sections; identifying anothersemantic style associated with the new content; and creating anothersection of the document formatted based on the other semantic style. 17.The computer-readable memory device of claim 15, wherein theinstructions further comprise: detecting entry of a new content into alocation on the document within a particular section; and in response toa failure to match another semantic style associated with the newcontent to the semantic style of the particular section, providing aprompt for an input to be displayed to select between an automaticreformatting of the other semantic style associated with the new contentto match the semantic style of the particular section and a rejection ofthe entry of the new content into the particular section.
 18. Thecomputer-readable memory device of claim 15, wherein the instructionsfurther comprise: detecting a copy action to insert a copied contentinto a location outside of the multiple sections; and querying aresource of the copied content to identify another semantic style of thecopied content at the resource.
 19. The computer-readable memory deviceof claim 18, wherein the instructions further comprise: identifying theother semantic style of the copied content from the resource; creatinganother section formatted with the other semantic style; and insertingthe copied content into the other section, wherein the copied content isformatted with the other semantic style.
 20. The computer-readablememory device of claim 15, wherein the instructions further comprise:detecting entry of a new content into a location on the document withina subsequent section; analyzing historical data associated with theparticular user or the document to identify a semantic style for thesubsequent section; and formatting the subsequent section based on theidentified semantic style.